package com.dqyt.khjc.bean;

import lombok.Data;

import java.util.List;

/**
 * 用户基本信息（内部用户信息）
 */
@Data
public class User extends BaseBean {

    /**
     * 状态 1：正常 2：限制登录
     */
    public final static int STATUE_OK = 1;

    /**
     * 状态 1：正常 2：限制登录
     */
    public final static int STATUE_BAN = 2;

    /**
     * 用户id
     */
    private long userId;


    private int mtype;

    /**
     * 用户手机
     */
    private String phone;

    /**
     * 用户账号
     */
    private String account;

    /**
     * 用户角色
     */
    private String role;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 头像
     */
    private String avatar;


    /**
     * 所属部门
     */
    private String department;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 100:正常登陆，-100：限制登录
     */
    private int statue;

    /**
     * 用户拥有的权限
     */
    private List<Role>  authority;

    /**
     * 用户token
     */
    private String token;


    /**
     * 印章ID
     */
    private long sealId;

    /**
     * 印章地址
     */
    private String sealUrl;


    private String  roleName;

    /**
     * 维修待核验条数
     */
    private long dhyNumber;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getStatue() {
        return statue;
    }

    public void setStatue(int statue) {
        this.statue = statue;
    }

    public List<Role> getAuthority() {
        return authority;
    }

    public void setAuthority(List<Role> authority) {
        this.authority = authority;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }



    public long getSealId() {
        return sealId;
    }

    public void setSealId(long sealId) {
        this.sealId = sealId;
    }

    public String getSealUrl() {
        return sealUrl;
    }

    public void setSealUrl(String sealUrl) {
        this.sealUrl = sealUrl;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public long getDhyNumber() {
        return dhyNumber;
    }

    public void setDhyNumber(long dhyNumber) {
        this.dhyNumber = dhyNumber;
    }

    public int getMtype() {
        return mtype;
    }

    public void setMtype(int mtype) {
        this.mtype = mtype;
    }
}
